#ifndef _TIMER1_H
#define _TIMER1_H
#include "sys.h"
#include "HEAD.h"
typedef struct
{
	u8 flag;
}Time1MarkDef;

extern Time1MarkDef Time1Mark;

typedef struct 
{
	u8 start[8];							//启动计时器
	u8 time[8];							//计时器时间长度
	u16 tiAdd;						//计时器累加器
	u8 mark[8];							//计时完成标志
	u8 reMark;							//反转标记
	
}TimeAddDef;
extern TimeAddDef Tim6Add,Tim7Add,Tim1Add;



void TIM1_Init(u16 arr,u16 psc);
void Time1_Task(void);
#endif
